﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReceiptInquiry.aspx.cs" Inherits="WMS6.Web.Inbound.ReceiptInquiry" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>ReceiptInquiry</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>    
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newReceiving()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Receiving.aspx?from=" + escape(from);
            return false;
        }
    </script>
</head>
<body>
    <form id="F4041" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblASN" runat="server" CssClass="label_header" 
                            Text="入库单" meta:resourcekey="lblASN"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnGoBack%>"  AccessKey="b"  onclick="btnGoBack_Click" 
                             /></td>
                    <td><asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnRefresh%>"  AccessKey="e" /></td>
                    <td><asp:Button ID="btnAction" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnAction%>"  AccessKey="a"  /></td>
                    <td><asp:Button ID="btnReport" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnReport%>"  AccessKey="r"  /></td>
                </tr>
            </table>
        </div>
        
        <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,3)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">入库通知</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,3)" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">入库通知明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,3)" id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one3">入库明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3"></div>
            </div>
        </div>
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblReceiptID" runat="server" CssClass="label" Text="入库通知单号" 
                                 meta:resourcekey="lblReceiptID"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                 meta:resourcekey="lblStatus"></asp:Label></td>
                         <td width="180">
                             <asp:Label ID="lblPOID" runat="server" CssClass="label" Text="采购订单号" 
                                 meta:resourcekey="lblPOID"></asp:Label></td>
                         <td width="180">
                             <asp:Label ID="lblReceiptDate" runat="server" CssClass="label" Text="收货日期" 
                                 meta:resourcekey="lblReceiptDate"></asp:Label></td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtReceiptID" runat="server" CssClass="textbox" MaxLength="30" 
                                 Enabled="False" meta:resourcekey="txtReceiptID"></asp:TextBox>
                         </td>
                         <td>
                             <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                 Enabled="False" meta:resourcekey="ddlStatus"></asp:DropDownList></td>
                         <td>
                             <asp:TextBox ID="txtPoID" runat="server" CssClass="textbox" MaxLength="30" 
                                 Enabled="False" meta:resourcekey="txtPoID"></asp:TextBox></td>
                          <td>
                              <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox" 
                                  MaxLength="30" Enabled="False" meta:resourcekey="txtReceiptDate" ></asp:TextBox></td>
                     </tr>                    
                     <tr>
                         <td width="180"> <asp:Label ID="lblOwnerID" runat="server" CssClass="label" 
                                 Text="货主代码" meta:resourcekey="lblOwnerID"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblReceiptType" runat="server" CssClass="label" 
                                 Text="订单类型" meta:resourcekey="lblReceiptType"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblExternalReceiptID" runat="server" 
                                 CssClass="label" Text="外部入库单号" meta:resourcekey="lblExternalReceiptID"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblExceptReceiptDate" runat="server" 
                                 CssClass="label" Text="预期到货日期" meta:resourcekey="lblExceptReceiptDate"></asp:Label></td>
                     </tr>
                     <tr>
                         <td> <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" Enabled="False" 
                                 meta:resourcekey="txtOwnerID"></asp:TextBox></td>
                         <td><asp:DropDownList ID="ddlReceiptType" runat="server" CssClass="mediumselectbox" 
                                 Enabled="False" meta:resourcekey="ddlReceiptType"></asp:DropDownList></td>
                         <td><asp:TextBox ID="txtExternalReceiptID" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtExternalReceiptID"></asp:TextBox></td>
                         <td><asp:TextBox ID="txtExceptReceiptDate" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtExceptReceiptDate"></asp:TextBox></td>
                     </tr>
                     <tr>
                         <td width="180"> <asp:Label ID="lblTotalExceptQty" runat="server" CssClass="label" 
                                 Text="总预期量" meta:resourcekey="lblTotalExceptQty"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblTotalReceiptQty" runat="server" CssClass="label" 
                                 Text="总接收量" meta:resourcekey="lblTotalReceiptQty"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblPackingSlipNum" runat="server" CssClass="label" 
                                 Text="装箱单号" meta:resourcekey="lblPackingSlipNum"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblVendorID" runat="server" CssClass="label" 
                                 Text="供应商代码" meta:resourcekey="lblVendorID"></asp:Label></td>
                     </tr>
                     <tr>
                         <td> <asp:TextBox ID="txtTotalExceptQty" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtTotalExceptQty" ></asp:TextBox></td>
                         <td><asp:TextBox ID="txtTotalReceiptQty" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtTotalReceiptQty" ></asp:TextBox></td>
                         <td><asp:TextBox ID="txtPackingSlipNum" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtPackingSlipNum" ></asp:TextBox></td>
                         <td><asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" Enabled="False" 
                                 meta:resourcekey="txtVendorID" ></asp:TextBox></td>
                     </tr>
                     <tr>
                         <td width="180"> <asp:Label ID="lblTotalGrossWeight" runat="server" 
                                 CssClass="label" Text="总毛重" meta:resourcekey="lblTotalGrossWeight"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblTotalCube" runat="server" CssClass="label" 
                                 Text="总体积" meta:resourcekey="lblTotalCube"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblRMA" runat="server" CssClass="label" Text="RMA号" 
                                 meta:resourcekey="lblRMA"></asp:Label></td>
                         <td width="180"><asp:Label ID="lblVendorRef" runat="server" CssClass="label" 
                                 Text="供应商参考信息" meta:resourcekey="lblVendorRef"></asp:Label></td>
                     </tr>
                     <tr>
                         <td> <asp:TextBox ID="txtTotalGrossWeight" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtTotalGrossWeight" ></asp:TextBox></td>
                         <td><asp:TextBox ID="txtTotalCube" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtTotalCube" ></asp:TextBox></td>
                         <td><asp:TextBox ID="txtRMA" runat="server" CssClass="textbox" Enabled="False" 
                                 meta:resourcekey="txtRMA" ></asp:TextBox></td>
                         <td><asp:TextBox ID="txtVendorRef" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtVendorRef" ></asp:TextBox></td>
                     </tr>
                     <tr>
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"><asp:Label ID="lblWaraHouseRef" runat="server" CssClass="label" 
                                 Text="仓库参考信息" meta:resourcekey="lblWaraHouseRef"></asp:Label></td>
                     </tr>
                     <tr>
                         <td></td>
                         <td></td>
                         <td></td>
                         <td><asp:TextBox ID="txtWaraHouseRef" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtWaraHouseRef" ></asp:TextBox></td>
                     </tr>
                     <tr style="height:10px;">
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                     </tr>
                 </table>
             </div>
             
             <div id="con_one_2" style="display: none;  overflow-x:auto; overflow-y:hidden;">
                 <table width="1000px" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td>
                             <table>
                                 <tr>
                                     <td>
                                        
                                     </td>
                                     <td>
                                       
                                     </td>
                                 </tr>
                             </table>
                         </td>
                     </tr>
                     <tr style="height: 10px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr>
                         <td>
                             <div>
                                 <asp:GridView ID="gvReceiptDetail" runat="server" AllowSorting="True" 
                                     AutoGenerateColumns="False" CssClass="gridview" Width="1800px"
                                     DataKeyNames="ReceiptID,ReceiptLineID" oninit="gvReceiptDetail_Init"  
                                     onrowdatabound="gvReceiptDetail_RowDataBound"  AllowPaging="True" 
                                     OnPageIndexChanging="gvReceiptDetail_PageIndexChanging" 
                                     onsorting="gvReceiptDetail_Sorting" 
                                     meta:resourcekey="gvReceiptDetail"  >
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <PagerStyle CssClass="GridViewPageStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                      <Columns>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" 
                                              meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>
                                          <asp:TemplateField meta:resourcekey="TemplateField">
                                              <HeaderTemplate>
                                                  <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('4041','gvReceiptDetail');"
                                                      onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                  <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvReceiptDetail');"
                                                      meta:resourcekey="CheckBox1" />
                                              </HeaderTemplate>
                                              <ItemTemplate>
                                                  <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                              </ItemTemplate>
                                              <FooterTemplate>
                                                  <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvReceiptDetail');"
                                                      meta:resourcekey="CheckBox2" />
                                              </FooterTemplate>
                                              <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                              <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                          </asp:TemplateField>
                                          <asp:BoundField  DataField="ReceiptID" SortExpression="ReceiptID" 
                                              HeaderText="收货单号" FooterText="收货单号" meta:resourcekey="ReceiptID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>                                                                    
                                        <asp:BoundField  DataField="ReceiptLineID" SortExpression="ReceiptLineID" 
                                              HeaderText="行号" FooterText="行号" meta:resourcekey="ReceiptLineID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="OwnerID" HeaderText="货主代码" FooterText="货主代码" 
                                              SortExpression="OwnerID" meta:resourcekey="OwnerID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" 
                                              SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SkuDescr" 
                                              meta:resourcekey="SkuDescr" >
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuDescr" runat="server" 
                                                    Text='<%# Eval("SkuDescr").ToString() %>' 
                                                    meta:resourcekey="lblSkuDescr"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_200" />       
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" 
                                              SortExpression="PackID" meta:resourcekey="PackID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="UomID" HeaderText="计量单位" FooterText="计量单位" 
                                              SortExpression="UomID" meta:resourcekey="UomID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="ToLoc" HeaderText="货位" FooterText="货位" 
                                              SortExpression="ToLoc" meta:resourcekey="ToLoc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="StatusD" HeaderText="状态" FooterText="状态" 
                                              SortExpression="StatusD" meta:resourcekey="StatusD">
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:BoundField>
                                         <asp:TemplateField FooterText="预期量" HeaderText="预期量" 
                                              SortExpression="ExpectedQty" meta:resourcekey="ExpectedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblExpectedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("ExpectedQty").ToString()) %>' 
                                                     meta:resourcekey="lblExpectedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>   
                                         <asp:TemplateField FooterText="接收量" HeaderText="接收量" 
                                              SortExpression="ReceivedQty" meta:resourcekey="ReceivedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblReceivedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("ReceivedQty").ToString()) %>' 
                                                     meta:resourcekey="lblReceivedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="VendorID" HeaderText="供应商代码" FooterText="供应商代码" 
                                              SortExpression="VendorID" meta:resourcekey="VendorID" ><ItemStyle CssClass="GridViewRowWidth_100" /></asp:BoundField>
                                        <asp:BoundField DataField="POID" HeaderText="采购订单号" FooterText="采购订单号" 
                                              SortExpression="POID" meta:resourcekey="POID" ><ItemStyle CssClass="GridViewRowWidth_100" /></asp:BoundField>
                                        <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" 
                                              SortExpression="RECEIVEDDATE" meta:resourcekey="RECEIVEDDATE">
                                            <ItemTemplate>
                                                <asp:Label ID="lblReceiveDate" runat="server" 
                                                    Text='<%# GetPreferenceShortDate(Eval("RECEIVEDDATE").ToString()) %>' 
                                                    meta:resourcekey="lblReceiveDate"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="LpnID" HeaderText="LPN" 
                                              FooterText="&quot;LPN&quot;&quot;" SortExpression="LpnID" 
                                              meta:resourcekey="LpnID" ><ItemStyle CssClass="GridViewRowWidth_100" /></asp:BoundField>
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr style="height: 30px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                 </table>
                 <div style="margin-left: 10px">
                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
                         <tr>
                             <td class="Result_01">
                                 总计：
                             </td>
                             <td class="Result_02">
                                 <table>
                                     <tr>   <td Style="margin-right: 20px;"> &nbsp; &nbsp; </td>
                                         <td>
                                             <asp:Label ID="lblTotalExpected" runat="server" Text="预期量:" class="label"></asp:Label><asp:Label
                                                 ID="lblTotalExpectedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                         </td>
                                         <td>
                                             <asp:Label ID="lblTotalReceived" runat="server" Text="接收量:" class="label"></asp:Label><asp:Label
                                                 ID="lblTotalReceivedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                         </td>
                                     </tr>
                                 </table>
                             </td>
                             <td class="Result_03">
                             </td>
                         </tr>
                          <tr  style="height:20px">
                                <td></td>
                                </tr>
                     </table>
                 </div>
                 </div>
                 <div id="con_one_3" style="display: none; overflow-x:auto; overflow-y:hidden; ">
                    <table width="1100px" style="display: block; margin-left: 10px; margin-top: 10px;">
                        <tr style="height: 10px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr>
                         <td>
                             <div>
                                 <asp:GridView ID="gvReceiptHistory" runat="server" AllowSorting="True" 
                                     AutoGenerateColumns="False" CssClass="gridview" oninit="gvReceiptHistory_Init" 
                                       onrowdatabound="gvReceiptHistory_RowDataBound" Width="1300px" 
                                     AllowPaging="True" OnPageIndexChanging="gvReceiptHistory_PageIndexChanging" 
                                     onsorting="gvReceiptHistory_Sorting" 
                                     meta:resourcekey="gvReceiptHistory" >
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                         <PagerStyle CssClass="GridViewPageStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>                                  
                                         <asp:TemplateField meta:resourcekey="TemplateField">
                                             <HeaderTemplate>
                                                 <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('4041','gvReceiptHistory');"
                                                     onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                 <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvReceiptHistory');"
                                                     meta:resourcekey="CheckBox1" />
                                             </HeaderTemplate>
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                             </ItemTemplate>
                                             <FooterTemplate>
                                                 <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvReceiptHistory');"
                                                     meta:resourcekey="CheckBox2" />
                                             </FooterTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="TransID" HeaderText="交易号" FooterText="交易号" 
                                             SortExpression="TransID" meta:resourcekey="TransID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="OwnerID" HeaderText="货主代码" FooterText="货主代码" 
                                             SortExpression="OwnerID" meta:resourcekey="OwnerID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" 
                                             SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="VendorID" HeaderText="供应商代码" FooterText="供应商代码" 
                                             SortExpression="VendorID" meta:resourcekey="VendorID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Lpn" HeaderText="LPN" FooterText="LPN" 
                                             SortExpression="Lpn" meta:resourcekey="LpnID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="PackID" HeaderText="包装代码" FooterText="包装代码" 
                                             SortExpression="PackID" meta:resourcekey="PackID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Uom" HeaderText="计量单位" FooterText="计量单位" 
                                             SortExpression="Uom" meta:resourcekey="UomID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>                                           
                                         <asp:TemplateField FooterText="接收量" HeaderText="接收量" 
                                             SortExpression="ReceivedQty" meta:resourcekey="ReceivedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblReceivedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("ReceivedQty").ToString()) %>' 
                                                     meta:resourcekey="lblExpectedQtyResource2"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="CondititonCode" HeaderText="货品属性" FooterText="货品属性" 
                                             SortExpression="CondititonCode" meta:resourcekey="CondititonCode">
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="LotID" HeaderText="批次号" FooterText="批次号" 
                                             SortExpression="LotID" meta:resourcekey="LotID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态" 
                                             SortExpression="Status" meta:resourcekey="StatusD">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="IsPutAwayed" HeaderText="已上架" FooterText="已上架" 
                                             SortExpression="IsPutAwayed" meta:resourcekey="IsPutAwayed">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr style="height:30px;">
                        <td></td>
                        <td></td>
                     </tr>
                 </table>
                     <div style="margin-left: 10px">
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                                 <td class="Result_01">
                                     总计：
                                 </td>
                                 <td class="Result_02">
                                     <table>
                                         <tr>   <td Style="margin-right: 20px;"> &nbsp; &nbsp; </td>
                                             <td  >
                                                 <asp:Label ID="lblRHTotalReceived" runat="server" Text="接收量:" class="label"></asp:Label><asp:Label
                                                     ID="lblRHTotalReceivedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                         </tr>
                                     </table>
                                 </td>
                                 <td class="Result_03">
                                 </td>
                             </tr>
                              <tr  style="height:20px">
                                <td></td>
                                </tr>
                         </table>
                     </div>
                     </div>
         </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnAction" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnReport" EventName="Click" />
        </Triggers>
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hdnReceiptID" runat="server" />
    <input type="hidden" id="hdnFrom" runat="server" />
    </form>
</body>
</html>
